// component.jsx
import React, { Component } from 'react';
import { connect } from 'dva';

class C extends Component {

}

function mapStateToProps() {}

export default HighLevelComponent(connect(mapStateToProps)(C), {
  title: 'abc',
});

// highLevelComponent.jsx

import React, { Component } from 'react';
import { connect } from 'dva';

const defaultLevelState = {
  title: '333',
};

function mapStateToProps(data) {
  return {
    data,
  };
}

function HighLevelComponent(C, defaultState) {
  const state = {
    ...defaultLevelState,
    ...defaultState,
  };
  class Wrapper extends Component {
    constructor(props) {
      super(props);
      this.state = state;
    }
    
  }
  return connect(mapStateToProps)(Wrapper);
}

